﻿using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Console;
using Microsoft.Extensions.Options; 

namespace System.Extensions
{
    public class LogManager
    {
        public static ILogger Create<T>() where T : class
        {
            var loggerFactory = LoggerFactory.Create(builder =>
            {
                builder.AddConsole(); 
            });
            return loggerFactory.CreateLogger<T>();
        }
    }
}
